package com.ly.pojo.dto;

import lombok.Data;
import jakarta.validation.groups.Default;
import jakarta.validation.constraints.NotBlank;
import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 记录后台操作日志入参
 *
 * @author Administrator
 * @date 2025-03-07 10:51:13
 */
@Data
public class OperationLogDTO {

    /**
     * 操作类型:必填
     */
    @NotBlank(groups = { CreateGroup.class, Default.class }, message = "操作类型不能为空")
    @Schema(description = "操作类型:必填")
    private String operationType;

    /**
     * 操作描述:可选
     */
    @Schema(description = "操作描述:可选")
    private String operationDescription;

    /**
     * 用户ID:可选
     */
    @Schema(description = "用户ID:可选")
    private Integer userId;
}
